<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/includes/site_defaults.php');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="nofollow, noindex" />
	<title>UnOfficial Green Auto Market Home Page</title>
	<link href="<?php echo $site_root."css/green.css"; ?>" rel="stylesheet" type="text/css" />
	<link href="<?php echo $site_root."css/validation.css"; ?>" rel="stylesheet" type="text/css" />
	
	<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/jquery-ui.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/jquery.validate.js" type="text/javascript" charset="utf-8"></script>
	
	
	
	<script type="text/javascript" charset="utf-8">
		$(document).ready(function(){
			$("#cancel_button").click(function(){ 
				location.replace("index.php"); 
				return false;
			});
			
			$("#contact_form").validate({
				rules: {
					First_Name: {required: true},
					Last_Name: {required: true},
					Password: {required: true, minlength: 6},
					Password2: {required: true, minlength: 6, equalTo: "#Password"},
					Email: {
						required: true,
						email: true
					}
				},
				submitHandler: function(form) {
					form.submit();
				}
			});
			
			
		});

	</script>
</head>

<body>
	<?php include($header); ?>
	<?php include($navigation); ?>
	<div id="wrapper">
		<div id="contentcontainer">

			<div id="content">
				<div id="contentcontain">
                	<div id="register">
					*All fields are required.
					<form action="create_account.php" id="contact_form" method="post">
						<fieldset>
							<legend>Main Information</legend>
                            <dl>
							<dt><label for="First_Name">First Name:</label></dt>
							<dd><input type="text" name="First_Name" value="" id="First_Name" tabindex="1" size="20"/></dd>
							<dt><label for="Last_Name">Last Name:</label></dt>
							<dd><input type="text" name="Last_Name" value="" id="Last_Name" tabindex="2" size="20"/></dd>
							<dt><label for="Email">Email:</label></dt>
							<dd><input type="text" name="Email" value="" id="Email" tabindex="3" size="30"/></dd>
							<dt><label for="Password">Password:</label></dt>
							<dd><input type="password" name="Password" value="" id="Password" tabindex="4" size="30" /></dd>
							<dt><label for="Password2">Confirm Password:</label></dt>
							<dd><input type="password" name="Password2" value="" id="Password2" tabindex="5" size="30" /></dd>
							</dl>
						</fieldset>

						<input type="submit" value="Create Account">
						<button id="cancel_button">Cancel</button>
					</form>
                    </div>

				</div><!--End of Content Contain-->    
			</div><!--End of Content-->

		</div><!--End of Content Container-->
	</div><!--End of Wrapper-->
	<?php include($footer); ?>
</body>

</html>